package com.bookpavilion.goods.client;

import entity.Result;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(value = "bp-file")
public interface FileClient {
    @PostMapping("/file/upload")
    public Result upload(@RequestParam MultipartFile file);
}
